﻿<UserControl x:Class="frmCRMMainForm"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" SnapsToDevicePixels="True" Width="1006" xmlns:my="clr-namespace:System;assembly=mscorlib">
    <Grid Background="Gray" Width="1006" Height="773" AllowDrop="True">
        <Grid.RowDefinitions >
            <RowDefinition Height="*" />
            <RowDefinition Height="2" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <GridSplitter Grid.Row="1" ResizeBehavior="PreviousAndNext"  Height="2" HorizontalAlignment="Stretch" Background="Black"    Width="1006" />

        <Label Height="23" HorizontalAlignment="Left" Margin="209,134,0,0" Name="lbldatabase" VerticalAlignment="Top" Width="69" Foreground="Red" Visibility="Hidden">DataBase</Label>
        <Label HorizontalAlignment="Left" Margin="0,7,0,0" Name="Label2" Width="80" Height="23" VerticalAlignment="Top">Logged In As</Label>
        <Label Margin="0,36,0,0" Name="Label3" HorizontalAlignment="Left" Width="89" Height="23" VerticalAlignment="Top">View Tasks Till</Label>
        <Label HorizontalAlignment="Left" Margin="225,7,0,0" Name="Label4" Width="48" Height="23" VerticalAlignment="Top">Branch</Label>
        <Label HorizontalAlignment="Left" Margin="226,35,0,0" Name="Label5" Width="38" Height="23" VerticalAlignment="Top">Dept</Label>
        <Label HorizontalAlignment="Left" Margin="226,63,0,0" Name="Label6" Width="38" Height="23" VerticalAlignment="Top">Cons</Label>
        <ComboBox Margin="100,36,0,0" Name="drpTaskView" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120">
            <ComboBoxItem>Today</ComboBoxItem>
            <ComboBoxItem>Tomorrow</ComboBoxItem>
            <ComboBoxItem>Week from Today</ComboBoxItem>
            <ComboBoxItem>Month from Today</ComboBoxItem>
            <ComboBoxItem>All</ComboBoxItem>
        </ComboBox>
        <Button Margin="100,74.44,0,0" Name="btnBrowseTasks" HorizontalAlignment="Left" Width="120" Height="23" VerticalAlignment="Top">Browse Tasks</Button>
        <ComboBox HorizontalAlignment="Left" Margin="271,7,0,0" Name="drpBranch" Width="120" Height="23" VerticalAlignment="Top" />
        <ComboBox HorizontalAlignment="Left" Margin="271,34,0,0" Name="drpDepts" Width="120" Height="23" VerticalAlignment="Top" />
        <ComboBox HorizontalAlignment="Left" Margin="271,61,0,0" Name="drpCons" Width="120" Height="23" VerticalAlignment="Top" />
        <Button HorizontalAlignment="Left" Margin="271,88,0,0" Name="btnConName" Width="120" Height="23" VerticalAlignment="Top" />
        <GroupBox Header="Go To" Margin="406,0,398,0" Name="GroupBox1" Height="100" VerticalAlignment="Top">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <RadioButton Margin="10,10,0,0" Name="radSearchCompany" HorizontalAlignment="Left" Width="77" Height="16" VerticalAlignment="Top">Company</RadioButton>
                <RadioButton Height="16" HorizontalAlignment="Right" Margin="0,10,12,0" Name="radSearchCase" VerticalAlignment="Top" Width="55" IsChecked="True">Case</RadioButton>
                <RadioButton Margin="10,32,0,32.723" Name="radSearchPerson" HorizontalAlignment="Left" Width="66">Person</RadioButton>
                <RadioButton HorizontalAlignment="Right" Margin="0,32,12,32.723" Name="radSearchInvoice" Width="55">Invoice</RadioButton>
                <TextBox HorizontalAlignment="Left" Margin="11,58,0,-0.277" Name="txtSearch" Width="76" />
                <Button Height="23" Margin="0,0,12,1.084" Name="btnGoTo" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="63" IsDefault="True">Go</Button>
                </Grid>
        </GroupBox>
        <Button Grid.Row="0"  Height="23" Margin="511,116,495,0" Name="Button4" VerticalAlignment="Top">Test</Button>
        <GroupBox Header="Add New Account" HorizontalAlignment="Right" Margin="0,-1,222,0" Name="GroupBox2" Width="163" Height="100" VerticalAlignment="Top">
            <Grid Height="80" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="148">
                <RadioButton Height="16" Margin="10,10,58,0" Name="radAddCompany" VerticalAlignment="Top">Company</RadioButton>
                <RadioButton Height="16" HorizontalAlignment="Left" Margin="10,0,0,4" Name="radAddColdCall" VerticalAlignment="Bottom" Width="60" IsChecked="True">Cold Call</RadioButton>
                <RadioButton Margin="10,36,58,29" Name="radAddPerson">Person</RadioButton>
                <Button Height="23" HorizontalAlignment="Right" Margin="0,0,23,3" Name="btnAddAccount" VerticalAlignment="Bottom" Width="42">Add</Button>
            </Grid>
        </GroupBox>
        <Button HorizontalAlignment="Right"  Name="btnSearch" Width="95" Margin="0,32,121,0" Height="23" VerticalAlignment="Top">Search</Button>
        <Button HorizontalAlignment="Right"  Name="btnHistory" Width="95" Margin="0,61,121,0" Height="23.5" VerticalAlignment="Top">History</Button>
        <Button HorizontalAlignment="Right"  Name="btnRefresh" Width="95" Margin="0,91,121,0" Height="23" VerticalAlignment="Top">Refresh List</Button>
        <Button HorizontalAlignment="Right"  Name="btnAdmin" Width="96" Margin="0,32,7,0" Height="23" VerticalAlignment="Top">Admin</Button>
        <Button HorizontalAlignment="Right"  Name="btnAbout" Width="96" Margin="0,61,7,0" Height="23.5" VerticalAlignment="Top">About</Button>
        <Button HorizontalAlignment="Right"  Name="btnAllocation" Width="96" Margin="0,91,7,0" Height="23" VerticalAlignment="Top">Allocation</Button>

        <Button HorizontalAlignment="Right" Margin="0,5,7,0" Name="btnExit" Width="209" Height="23" VerticalAlignment="Top">Exit &amp; Log Off</Button>
        <Label HorizontalAlignment="Right" Margin="0,149,191,0" Name="Label7" Width="69" Height="23" VerticalAlignment="Top">Message</Label>
        <TextBox HorizontalAlignment="Right" Margin="0,174,21,0" Name="txtMessage"  Width="238" Background="#FFD4D0C8" TextWrapping="Wrap" Height="104.933" VerticalAlignment="Top" />
        <Button HorizontalAlignment="Right" Margin="0,283.933,163,0" Name="btnDismissTask" Width="96" Height="23" VerticalAlignment="Top">Dismiss Task</Button>
        <GroupBox Name="GroupBox3" Grid.Row="2" Margin="3,4,21,32">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="211*" />
                    <ColumnDefinition Width="759*" />
                </Grid.ColumnDefinitions>
                <GroupBox Name="GroupBox4" Header="View" Margin="5,8,11,0" Height="60.5" VerticalAlignment="Top">
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <RadioButton Name="radViewPreSale" IsChecked="True" Content="Pre-Sale" HorizontalAlignment="Left" Width="57" Margin="7,12,0,12"></RadioButton>
                        <RadioButton Name="radViewInitiated" Content="Initiated" Margin="70,12,0,6" HorizontalAlignment="Left" Width="64"></RadioButton>
                        <RadioButton Name="radViewAll" Content="All" Margin="0,12,8,12" HorizontalAlignment="Right" Width="40"></RadioButton>
                    </Grid>
                </GroupBox>
                <GroupBox Header="Cases where you are the ...." Margin="205,9,402,0" Name="GroupBox5" Grid.ColumnSpan="2" Height="60" VerticalAlignment="Top">
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <RadioButton HorizontalAlignment="Left" Margin="7,12,0,12" IsChecked="True" Name="radRoleSales" Width="65">Sales-Con</RadioButton>
                        <RadioButton Margin="79,12,0,6" Name="radRoleCW" HorizontalAlignment="Left" Width="74">Caseworker</RadioButton>
                        <RadioButton Margin="159,12,67,12" Name="radRoleCaseCoordinator">Case Co-Ordinator</RadioButton>
                        <RadioButton HorizontalAlignment="Right" Margin="0,12,6,12" Name="radRoleEither" Width="55">Any</RadioButton>
                    </Grid>
                </GroupBox>

                <!--<Grid Margin="5,81,16,27" Name="Cases" ShowGridLines="False" ForceCursor="True" Background="White" Grid.ColumnSpan="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="471*" />
                        <ColumnDefinition Width="478*" />
                    </Grid.ColumnDefinitions>-->
                    <telerik:RadGridView Margin="5,75,16,6" Name="grdCases" AllowDrop="False" AutoGenerateColumns="True"  CanUserReorderColumns="True" CanUserSortColumns="True"  CanUserResizeColumns="True" Grid.ColumnSpan="2" ActionOnLostFocus="None" CanUserInsertRows="False" ScrollMode="RealTime" ColumnsWidthMode="Auto"   >
                    <telerik:RadGridView.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Green" x:Name="ctxGreen" Click="ctxGreen_Click" IsCheckable="True" />
                            <MenuItem Header="Red" x:Name="ctxRed" Click="ctxRed_Click" />
                            <MenuItem Header="Orange" x:Name="ctxOrange" Click="ctxOrange_Click" />
                        </ContextMenu>
                    </telerik:RadGridView.ContextMenu>
                </telerik:RadGridView>
                
                
                <!--</Grid>-->

            </Grid>

        </GroupBox>
        <GroupBox Header="On Hold" Margin="0,12,228,0" Name="GroupBox6" HorizontalAlignment="Right" Grid.Row="2" Width="195" Height="60.5" VerticalAlignment="Top">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <RadioButton HorizontalAlignment="Left" Margin="7,12,0,12" IsChecked="True" Name="radHoldExclude" Width="57">Exclude</RadioButton>
                <RadioButton HorizontalAlignment="Left" Margin="70,12,0,6" Name="radHoldInclude" Width="64">Include</RadioButton>
                <RadioButton HorizontalAlignment="Right" Margin="0,12,8,12" Name="radHoldOnly" Width="40">Any</RadioButton>
            </Grid>
        </GroupBox>
        <!--<GroupBox Header="View" Margin="0,11,37,0" Name="GroupBox7" HorizontalAlignment="Right" Grid.Row="2" Width="186" Height="60.5" VerticalAlignment="Top">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Label Margin="5,7.612,0,10.612" Name="lvlView" HorizontalAlignment="Left" Width="40">Select</Label>
                <ComboBox Margin="66,7.612,6,10.611" Name="drpView" SelectedIndex="0">
                    <ComboBoxItem>1</ComboBoxItem>
                    <ComboBoxItem>2</ComboBoxItem>
                    <ComboBoxItem>3</ComboBoxItem>
                </ComboBox>
            </Grid>
        </GroupBox>-->
        <Label HorizontalAlignment="Left" Margin="100,5,0,0" Name="lblUser" Width="119" Background="White" BorderThickness="1" BorderBrush="Black" Height="23" VerticalAlignment="Top"></Label>
        <StatusBar Height="23" Margin="0,0,0,3" Name="stsPipeline" VerticalAlignment="Bottom" Grid.Row="2">
            <StatusBarItem Background="Gray" Visibility="Visible"></StatusBarItem>
        </StatusBar>
        <telerik:RadGridView Margin="10,157,266,0" AllowDrop="True"  AutoGenerateColumns="True" Name="lvwEventsOutstanding"  CanUserReorderColumns="True" CanUserResizeColumns="True" CanUserSortColumns="True" GridLinesVisibility="Vertical" AreRowDetailsFrozen="True" RowDetailsVisibilityMode="Visible" VerticalAlignment="Top" Height="204.5"></telerik:RadGridView>
        <ComboBox Margin="0,120,121,0" Name="cmbStyle" HorizontalAlignment="Right" Width="95" Height="23" VerticalAlignment="Top">
            <ComboBoxItem>Aero.Normal</ComboBoxItem>
            <ComboBoxItem>Classic</ComboBoxItem>
            <ComboBoxItem>Luna.Normal</ComboBoxItem>
            <ComboBoxItem>Luna.Homestead</ComboBoxItem>
            <ComboBoxItem>Luna.Metallic</ComboBoxItem>
            <ComboBoxItem>Royale.Normal</ComboBoxItem>           
        </ComboBox >
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,120,9,0" Name="cmbColor" VerticalAlignment="Top" Width="95"></ComboBox>
    </Grid>
    
</UserControl>
